import { of, asyncScheduler }  from 'rxjs'

const Scheduler = () => {
    // console.log('start')
    // of(1,2,3).subscribe({
    //     next: result => console.log(result),
    //     complete: () => console.log('complete')
    // })
    // console.log('end')

    of(1,2,3,asyncScheduler).subscribe({
        next: result => console.log(result),
        complete: () => console.log('complete')
    })
    return (
        <div>
            scheduler
        </div>
    )
}

export default Scheduler